import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity('tb_postman', {
  comment: '配送员表',
})
export class Postman {
  @PrimaryGeneratedColumn('increment', { comment: '自增主键', unsigned: true })
  id: number;

  @Column({ comment: '手机号码', unique: true, type: 'char', length: 11 })
  phone: string;

  @Column({ comment: '登录密码', type: 'char', length: 60 })
  password: string;

  @Column({ comment: '头像地址', nullable: true })
  avatar: string;

  @Column({ comment: '用户昵称', nullable: true })
  nickname: string;
}
